﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ThreadEyePro
{
    public partial class FormBrowser : Form
    {
        private string startUrl = "about:blank";

        public FormBrowser()
        {
            InitializeComponent();

            this.Resize += new EventHandler(FormBrowser_Resize);
        }

        public void navigateTo(string url)
        {
            startUrl = url;
            webBrowser1.Navigate(url);
        }

        void FormBrowser_Resize(object sender, EventArgs e)
        {
            if (this.WindowState == FormWindowState.Minimized)
            {
                this.Hide();
            }
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            e.Cancel = true;
            this.Hide();
            base.OnClosing(e);
        }
    }
}
